const Mock = require('mockjs')

const data = Mock.mock({
  'items|20': [{
    id: '@id',
    title: '@sentence(1, 5)',
    createTime: '@datetime',
    content:'@sentence(5, 10)'
  }]
})

module.exports = [{
  url: '/leaveMsg/list/20',
  type: 'get',
  response: config => {
    const items = data.items
    return {
      "code": 2000,
      "msg": "SUCCESS",
      "description": "total:20",
      "data": items
    }
  }
}]
